package com.jackchan.homework.sysw.repository;

import com.jackchan.homework.sysw.entity.Material;
import com.jackchan.homework.sysw.entity.Nutritive;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

/**
 * Created by ch-hui on 15/12/20.
 */
public interface NutritiveDao extends
        PagingAndSortingRepository<Nutritive, Long>,
        JpaSpecificationExecutor<Nutritive> {

    Nutritive findByMaterial(Material material);
}
